<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/common/taglibs.jsp"%>
<link rel="stylesheet" type="text/css" href="${ctx}/styles/pop.css" media="screen"/>
<script type="text/javascript" src="${ctx}/scripts/jquery/jquery.form.js"></script>
<div class="pop_roster_request">
	<div class="pop_roster_request_tit">
		邀请用户加入组
	</div>
	<form id="f_team_user_invite" action="<c:url value='/team/member/doinvite.do'/>" method="post">
		<input type="hidden" name="teamid" value="${teamUser.teamid}">
		用户昵称：<input type="text" name="invite""/>
		<br/>
		<button type="submit" class="btn3" >发送邀请</button>
	</form>
</div>
<script>
$("#f_team_user_invite").ajaxForm({
	dataType:'xml', 
	type:'post',
	success: processInviteResult
});
function processInviteResult(result){
	if($(result).find('result').text().toUpperCase().indexOf("TRUE") >= 0){
		$.fn.colorbox.close();
		alert("邀请成功！");
	}else{
		alert("邀请出错！");
	}
}
</script>